package com.wantdo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * Created by king on 2017/10/20.
 */
@RestController
@SpringBootApplication
public class MainControl {

	private final static Logger logger = LoggerFactory.getLogger(MainControl.class);

	public static void main(String[] args) {
		SpringApplication.run(MainControl.class,args);
	}

	@RequestMapping("/")
	public String index(){
		logger.info("test");
		logger.error("error");
		return "Hello World!";
	}
}
